#pragma once
#ifndef EMITTER_H
#define EMITTER_H

#include <tsg.h>
using namespace tsg;
using namespace controller;
using namespace gl;

#include "ParticleSystem.h"

class CEmitter:public Controller<int>
{
public:
	Parameter<int> m_numberOfParticleToEmit;
	CParticleSystem* m_particleSystem;
	Parameter<Vector3> m_velocity;
public:
	CEmitter(void);
	~CEmitter(void);
	virtual void emitterUpdate()=0;

private:
	virtual void doUpdate();
};

#endif
